<?php 
$params = Yii::app()->controller->getActionParams();
if (!empty($params)) {
    foreach($params as $key => $value) {
        if ($key == 'lang')
            $langParam = $value;
    }
}
?>

<?php
$url = "./index.php?r=search/index";
if (!empty($langParam)) $url .= "&lang=".$langParam;
?>

<?php echo CHtml::beginForm($url, 'get'); ?>
<div id="templatemo_search">

    <input type="text"  name="keyword" id="keyword" title="keyword" onfocus="clearText(this)" onblur="clearText(this)" class="txt_field" />
    <button type="submit" name="Search" value="1" alt="Search" id="searchbutton" title="Search" class="sub_btn"  ><?php echo Yii::t('translation', 'Look') ?></button>

</div>
<?php echo CHtml::endForm();?>